<?php 
	include_once("../model/Model.php");
	$userId = $_REQUEST['id'];
	$model = new Model();
	$ans = $model->getFriendName($userId);
	
		foreach($ans as $row)
		{	
?>
<div id="images" style="border: 1px solid #BDCFD9; width: 100%;margin-top:20px;">
	<form id="uploadVideoform" method="post" enctype="multipart/form-data" action="addmsg_process.php">   
    	<ul style="list-style:none;">
        	<li><input type="text" value="<?php echo $row['fullname']; ?>" disabled><input type="hidden" name="frndid" value="<?php echo $userId; ?>"></li>
            <li>
            	<textarea id="msg" name="msg" class="msg" rows="4" cols="15" placeholder="Add msg here.."/></textarea>  
            </li>
            <li>
            	<input id="Submit4" type="submit" value="Send" class="btn" name="action" />
            </li>
        </ul>
    </form>
</div>

<?php
		}
?>